const BaseDto = require("./base.dto");

module.exports = {
  // 创建
  createDto: {
    parentId: {
      comment: "父菜单ID",
    },
    perm: {
      required: true,
      comment: "权限值",
    },
    title: {
      required: true,
      comment: "菜单名称",
    },
    name: {
      comment: "路由名称",
    },
    path: {
      // required: true,
      comment: "路由路径",
    },
    component: {
      comment: "菜单组件",
    },
    icon: {
      comment: "图标",
    },
    type: {
      comment: "菜单类型",
    },
    status: {
      comment: "状态",
    },
    sort: {
      comment: "排序",
    },
  },
  // 编辑
  editDto: {
    id: {
      required: true,
      comment: "菜单ID",
    },
    title: {
      comment: "菜单名称",
    },
    name: {
      comment: "路由名称",
    },
    path: {
      // required: true,
      comment: "路由路径",
    },
    component: {
      comment: "菜单组件",
    },
    icon: {
      comment: "图标",
    },
    type: {
      comment: "菜单类型",
    },
    status: {
      comment: "状态",
    },
    sort: {
      comment: "排序",
    },
  },
  delDto: {
    id: {
      required: true,
      comment: "菜单ID",
    },
  },
  
};
